package utils;

import java.util.Comparator;
import java.util.Map;
import java.util.Map.Entry;


public class ValueComparator <T> implements Comparator<Map.Entry<T,? extends Comparable>> {

	@Override
	public int compare(Entry<T, ? extends Comparable> arg0,
			Entry<T, ? extends Comparable> arg1) {
		return arg0.getValue().compareTo(arg1.getValue());
	}
	
}